<%@ page import="top.sjydzq.www.bean.User" %>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<!DOCTYPE html>
<html>
<head>
    <meta charset=UTF-8">
    <title>订单确认 - 狗东电商 GD.COM</title>
    <link href="../css/before/daohang.css" rel="stylesheet" type="text/css" />
    <link href="../css/before/common.css" rel="stylesheet" type="text/css" />
    <link href="../css/before/style.css" rel="stylesheet" type="text/css" />
    <%
        User user = (User) session.getAttribute("user");

        int uid;
        if (user != null) {
            uid = user.getId();
        } else {
            uid = 0;
        }
    %>
    <script type="text/javascript">
        function submitorder(total){
            if(window.confirm("是否真的提交订单，提交后不可再修改订单信息！")){
                window.location.href='done?oid=<c:out value="${order.id}"/>&uid=<%= uid %>';
                return true;
            }
            return false;
        }
    </script>
</head>
<body>
    <iframe src="/head" frameborder="0" width="100%"> </iframe>
	<div class="blank"></div>
	<div class="block clearfix"><!--当前位置-->
	<div class="location ared">当前位置：<a href="/">首页</a> > 购物流程 > 确认订单信息</div>
	<div class="blank"></div>
			<div class="nFlowBox">
    <h6>商品列表</h6>
    <table width="100%" align="center" border="0" cellpadding="5" cellspacing="1" bgcolor="#dddddd">
        <tr>
          <th bgcolor="#ffffff">商品名称</th>
          <th bgcolor="#ffffff">市场价格</th>
          <th bgcolor="#ffffff">购买数量</th>
          <th bgcolor="#ffffff">小计</th>
        </tr>
        <c:forEach items="${order.items}" var="item">
            <tr>
                <td bgcolor="#ffffff" align="center">
                    ${item.productName}
                </td>
                <td align="center" bgcolor="#ffffff">
                    ${item.productPrice}
                </td>
                <td align="center" bgcolor="#ffffff">
                    ${item.amount}
                </td>
                <td align="center" bgcolor="#ffffff">
                    ￥ ${item.subtotal}
                </td>
            </tr>
        </c:forEach>
        <tr>
            <td bgcolor="#ffffff" colspan="4" align="right">
                应付款
                <font class="pricetype" size="5" color="red"><c:out value="${order.money}" /></font>
          </td>
      </tr>
    </table>
    <div align="center" style="margin:8px auto;">
         <img style="cursor:pointer;"  onclick="submitorder(100)" src="../images/before/bnt_subOrder.gif" />
    </div>
    <input type="hidden" name="goodsamount" value="20"/>
</div>
</div>
</body>
</html>




